package com.sun.service;

import com.sun.pojo.Books;

import java.util.List;

/**
 * @author 烛龙神
 * @Description TODO
 * @date 2021-04-10 20:03
 */
public interface BookService {

    //增加一本书
    int addBook(Books books);

    //删除一本书
    int deleteBookById(int id);

    //更新一本书
    int updateBook(Books books);
    //查询一本书
    Books queryBookById(int id);
    //查询全部书
    List<Books> queryAllBook();
    //通过书名查询书籍
    Books queryBookByName(String bookName);
}
